OMPCC = gcc
MPICC = mpicc
OMPFLAGES += -fopenmp -DUSEOMP -I ./../
MPIFLAGES += -DUSEMPI
OMPMPIFLAGES += -DUSEMPI -DUSEOMP

all:2_omp.out 2_mpi.out 3_omp.out 3_mpi.out

2_omp.out:pi_mpi_hybridv2.c 
	$(OMPCC) $(OMPFLAGES) $^ -o $@
 
2_mpi.out:pi_mpi_hybridv2.c 
	$(MPICC) $(MPIFLAGES) $^ -o $@ 

3_omp.out:pi_mpi_hybridv3.c 
	$(OMPCC) $(OMPFLAGES) $^ -o $@ 

3_mpi.out:pi_mpi_hybridv3.c 
	$(MPICC) $(MPIFLAGES) $^ -o $@ 